<?php

/**
 *  ScrapFacade Class
 *
 *  
 *  @author     Vinod Kumar
 *  @package    Project Name
 *
 */

class ScrapFacade extends MainFacade {
	
	private $scrapService;
	
	/**
     *  __construct
     *
     *  Instantiate ScrapService Object
     */
	public function __construct() {
	    
		$this->scrapService = new ScrapService();
	}/* END __construct */
	
	/**
     *  sendScrap
     *
     *  Send scrap to a user
     * 
     * @param   array   post        User data
     * @return  array   retArray    array of bool result & message
     * 
     */
	public function sendScrap($post) {
		
	    $retArray = array("result"=>false, "message"=>'');
		return $retArray;		
	}/* END sendScrap */
	
	
    /**
     *  _validateScrap
     *
     *  Perform User Validation
     * 
     * @param   array   data        User data
     * @return  array   retArray    array of bool result & message
     * 
     */
	protected function _validateScrap(&$data) {
	    
	    $retArray = array("result"=>false, "message"=>'');
		
		return $retArray;
	} /* END _validateScrap */  
	
	
    /**
     *  fetchScrapsByUserId
     *
     *  Fetches all scaps of a user
     * 
     * @param   int     userId      User Id
     * @return  array   retArray    array of rows
     */
	public function fetchScrapsByUserId($userId) {

	    //call a query from Scrap Service class object to fetch all scraps & return it	
	} /* END fetchScrapsByUserId */ 
    

    /**
     *  deleteScrap
     *
     *  Delete a scrap
     * 
     * @param   array   post        scrap Id
     * @return  array   retArray    array of bool result & message
     * 
     */
    public function deleteScrap($scrapId) {
        
    }/* END deleteScrap */
  
}/*END ScrapFacade*/
?>